// The following ifdef block is the standard way of creating macros which make exporting 
// from a DLL simpler. All files within this DLL are compiled with the TOOLBARBUTTONS_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see 
// TOOLBARBUTTONS_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#define UNMANGLED extern "C"
#ifdef TOOLBARBUTTONS_EXPORTS
#define TOOLBARBUTTONS_API __declspec(dllexport)
#else
#define TOOLBARBUTTONS_API __declspec(dllimport)
#endif

const TCHAR PROP_NAME[] = L"iconWinProp";

typedef struct
{
	HWND m_hwnd;
	DWORD m_pid;
	LPSTR m_dllName;
} DllPass;

typedef struct
{
	UINT m_cmd;
	HBITMAP m_bmp;
	bool m_isPressed;
} TBbutton;

typedef struct
{

	bool m_isDown;
	WNDPROC m_oldProc;	//old procedure
} iconProc;

iconProc iconStruct;

//methods
int beginLoad(void);
HRGN InsertButton(HWND,HRGN);